#pragma once
#include <OgreFrameListener.h>
#include <OgreAnimationState.h>
class OgreRenderFrameListener : public Ogre::FrameListener
{
public:
	OgreRenderFrameListener(void);
	~OgreRenderFrameListener(void);
	virtual bool frameStarted(const Ogre::FrameEvent& evt);
	void setAnimationState(Ogre::AnimationState* pAni, Ogre::Real speed = 1.0f);
protected:
	Ogre::AnimationState* m_pAni;
	Ogre::Real m_aniSpeed;
};
